package com.kantboot.functional.pay.wechat.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

@Getter
@Setter
public class PaySuccessEvent extends ApplicationEvent {

    private String orderId;


    public PaySuccessEvent(String orderId) {
        super("PaySuccessEvent");
        this.orderId = orderId;

    }

    public static PaySuccessEvent of(String orderId){
        return new PaySuccessEvent(orderId);
    }
}
